import { Validator } from 'jsonschema';
import schema from '../json-schema/IPlankPropsSchema.json';
import { IPlankProps } from '../types/IPlankProps';

export function vailidatePlankProps(props: IPlankProps) {
  const v = new Validator();
  const validateResult = v.validate(props, schema);
  return validateResult;
}
